<%@page import="Logic.Authorizer"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%
	if (session.getAttribute("name") == null) {
		response.sendRedirect("login.jsp?error=3");
	} else {
		if(!session.getAttribute("role").equals("1"))
		{
			
		}
		else
		{
			response.sendRedirect("committee_viewcomm.jsp");
		}
	}
%>

<!-- Declare the first header -->
<jsp:include page="t_header.jsp" />

<!-- Declare Breadcrumbs options -->
<div class="breadcrumbs_container">
	<article class="breadcrumbs">
		<a class="current">Committee</a>
	</article>
</div>
<jsp:include page="header.html" />
<!-- Declare sidebar -->
<jsp:include page="t_siderbarcommittee.jsp" />

<!-- Main Content -->
<body>
	<section id="main" class="column">
	
	<%
	if(session.getAttribute("name") != null)
	{

		if(session.getAttribute("role").equals("1"))
		{
	%>
	
		<h4 class="alert_info">Welcome! Please use the links in the side
			bar to navigate.</h4>
			
	<%}
		else{

		%>
		
		
		<h4 class="alert_error">You are not authorized to view this page.</h4>
		
		
		<%
		}
	}
		
	
				%>

		<div class="clear"></div>
		<div class="spacer"></div>
	</section>

	<!-- Declare closing tags -->
	<jsp:include page="t_footer.jsp" />